package com.lvmama.pangolin.mybatis.mapper.qnr;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.lvmama.pangolin.entity.InputCommodityVO;
import com.lvmama.pangolin.entity.qnr.QNRTicketCommodityItem;
import com.lvmama.pangolin.entity.qnr.QNRTicket_CommodityDetail;

public interface QNRTicketCommodityItemsMapper {
	/**  
	* @Title：TCommodityItemsMapper.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年3月6日上午11:07:29  
	*/
	public int insert(QNRTicket_CommodityDetail item);
	public void insertSelective(QNRTicketCommodityItem item);
	public QNRTicketCommodityItem selectById(@Param("commodityId")String commodity_id,@Param("productId")String productId);
	public int update(QNRTicket_CommodityDetail item);
	public int updateByProdCommIdAndType(QNRTicket_CommodityDetail item);
	public void updateSelective(QNRTicketCommodityItem item);
	public List<QNRTicketCommodityItem> selectByProdId(@Param("product_id")String product_id);
	public QNRTicketCommodityItem selectByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public List<QNRTicketCommodityItem> selectByProdComName(@Param("productId")String productId,@Param("commodityName")String commodityName);
	public void updateByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void deleteLinkByProdCommId(@Param("productId")String productId,@Param("commodityId")String commodityId);
	public void deleteById(@Param("id")String id);
	public List<QNRTicketCommodityItem> selectByProdidAndIsLinked(Map<String, String> map);
	public List<QNRTicketCommodityItem> selectByCommVO(InputCommodityVO co);
	public List<QNRTicketCommodityItem> getActiveCommodity(@Param("productId")String productId);
}
